/*
 * Copyright (C) 2019 ydssoft.com
 *
 */
package com.deepexps.security.commen;

/**
 * 说明：
 * 	  消息类(不是200状态码的消息都要求提示）
 * 修改历史：
 *   日期                                 创建/修改人                             说明
 *   2021-05-04    lvyuelei        init
 */
public enum Message {
	HTTP_SERVER_OK(200,"操作成功！"),
	HTTP_SERVER_ERROR(500,"服务器内部错误，请稍后重试！"),
	HTTP_PARAM_ERROR(501,"请求参数错误！"),
	HTTP_DATA_ERROR(502,"数据异常，不允许操作！"),
	HTTP_NOT_FOUND(404,"请求内容不存在！"),
	HTTP_ACCESS_DENIED(401,"拒绝访问！"),
	HTTP_ACCESS_BUSY(403,"服务忙请稍后重试！"),
	HTTP_AUTH_EXPIRED(408,"身份过期，请重新登陆！"),
	HTTP_JWT_EXPIRED(406,"authorization过期！"),
	HTTP_REQUEST_REPEATE(407,"不要重复提交请求！"),
	HTTP_TIME_ERROR(408,"手机时间不准确，请校准！"),

	SYS_CAPTCHA_EXPIRED(601,"验证码已过期，请重新输入！"),
	SYS_CAPTCHA_ERROR(602,"验证码错误，请重新输入！"),

	SYS_LOGIN_ERROR(610,"用户名或密码错误！"),

	SYS_REGISTER_EXPIRED(620,"注册信息已超时过期，请从第一步重新开始！"),
	SYS_REGISTER_EXISTS(621,"此手机号已经被注册！"),

	SYS_SMS_CAPTCHA_EXPIRED(640,"短信验证码已过期，请重新点击发送！"),
	SYS_SMS_CAPTCHA_ERROR(641,"短信验证码错误，请重新输入！"),

	SYS_USER_STATUS_ERROR(650,"此手机号对应的账户已经注销或被管理员停用，如有疑问请联系客服！"),
	SYS_USER_BIND_NOEXISTS(651,"此手机号对应的账户不存在，切换到‘我没有账户’中注册并绑定"),
	SYS_USER_BIND_EXISTS(652,"此手机号对应的账户已经存在，切换到‘我已有账户’中直接绑定！"),
	SYS_USER_NOTEXISTS(653,"此手机号对应的账户不存在！"),
	SYS_USER_PASSWORD_RESET_EXPIRED(654,"密码重置信息已超时过期，请从第一步重新开始！"),

	SYS_WEIXIN_NOEXISTS(661,"此微信认证未通过，如有疑问请联系客服！"),
	SYS_WEIXIN_BINDINFO_EXPIRED(662,"微信授权信息已过期，请重新授权绑定！"),

	SYS_VERSION_LASTEST(670,"当前已经是最新版本！"),

	SYS_PRODUCT_NOT_FOUND(701,"你所要购买的产品不存在或已下架，请刷新重新下单！");


	private final int code;

	private final String msg;

	private Message(int code, String msg){
		this.code=code;
		this.msg=msg;
	}
	public int getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
}
